<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>编辑链接</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/bootstrap/css/bootstrap.min.css">
    <script src="${pageContext.request.contextPath}/bootstrap/js/jquery-2.1.0.min.js"></script>
    <script src="${pageContext.request.contextPath}/bootstrap/js/bootstrap.min.js"></script>
    <style>
        .form-container {
            width: 50%;
            margin: 50px auto;
            padding: 20px;
            background-color: #fff;
            border-radius: 5px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        .form-group label {
            font-weight: bold;
        }
    </style>
</head>
<body>
    <div class="form-container">
        <h2 class="text-center">编辑链接</h2>
        <form id="updateForm" action="${pageContext.request.contextPath}/links/update" method="post">
            <input type="hidden" name="links_id" value="${links.links_id}">
            <div class="form-group">
                <label for="name">链接名称</label>
                <input type="text" class="form-control" id="name" name="links_name" value="${links.links_name}" required>
            </div>
            <div class="form-group">
                <label for="url">链接地址</label>
                <input type="url" class="form-control" id="url" name="links_url" value="${links.links_url}" required>
            </div>
<%--            <div class="form-group">--%>
<%--                <label for="description">描述</label>--%>
<%--                <textarea class="form-control" id="description" name="description" rows="3">${links.description}</textarea>--%>
<%--            </div>--%>
            <div class="text-center">
                <button type="submit" class="btn btn-primary">保存</button>
                <button type="reset" class="btn btn-default">重置</button>
            </div>
        </form>
    </div>
</body>
</html>
